<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>我的采购单</title>
<jsp:include page="header.jsp"></jsp:include>
</head>
<body>
<div class="J-header"></div>
	<div class="wrap clearfix">
		<div class="w">
			<div class="breadNavBg">
				<div class="breadNav pb10">
					<div><a>首页</a>&nbsp;&gt;&nbsp;</div><a href="member-index.jsp">会员中心</a></div>
				</div>
					<!--breadNavBg-->
					<div class="member">
						<div class="w">
							<div class="fl leftmenu">
								<h3 class="font14"><i class="arr"></i><b>会员中心</b><span>Member Center</span></h3>
								<ul>
									<li class="title">采购中心</li>
									<li class="active"><a href="ShowOrderServlet">我的采购单</a>
									</li>
									<li><a href="ShowMyOrderServlet">取消我的采购单</a>
									</li>
								</ul>
								<ul>
									<li class="title">代理中心</li>
									<li><a href="member-agent-new.html">我的申请</a>
									</li>
									<li><a href="member-agent.html">我的代理</a>
									</li>
								</ul>
								<ul>
									<li class="title">关注中心</li>
									<li><a href="ShowAttentionServlet">我关注的商品</a>
									</li>
									<li><a href="ShowShopServlet">我关注的店铺</a>
									</li>
								</ul>
								<ul>
									<li class="title">设置中心</li>
					                 <li><a href="AccountServlet">账户信息</a></li>
					                 <li><a href="AddressQueryServlet">收货地址</a></li>
					                 <li><a href="member-setting-safe.jsp">账号安全</a></li>
								</ul>
							</div>
							<!--leftmenu end-->
							<div class="fl mem-con">
								
								<!--meb-infor end-->
								<h2 >我的采购单</h2>
								<div class="mem-agent clearfix">
									
										
										<div class="agent-seach">
		        			<div class="fl seach-item"><span class="label">订单编号：</span><input class="itext" type="text" value="${page.number }"></div>
		        			<div class="fl seach-item"><span class="label">采购时间：</span>
		        				
									<span>
										<select  name="" class="selt">
								<option value="1" selected="">最近三个月</option>
								  <option value="2">今年内</option>
								  <option value="2014">2014年</option>
								  <option value="2013">2013年</option>
								  <option value="2012">2012年</option>
								  <option value="3">2012年以前</option>
							</select>
									</span>
									</div>
									<div class="fl seach-item"><span class="label">订单状态：</span>
										<select  name="" class="selt">
											<option value="4096" selected="">全部状态</option>
											<option value="1">等待付款</option>
											<option value="2">等待自提</option>
											<option value="3">等待收货</option>
											<option value="4">已完成</option>
											<option value="5">已取消</option>
										</select>
								
		        			</div>
		        			<div class="fl seach-item"><button class="btn btn-ss btn-warning">查询</button></div>
		        		</div>

						<table class="table1 table2">
							<thead>
								<tr>
									<th>订单号</th>
									<th>订单商品</th>
									<th>订单金额</th>
									<th>交易时间</th>
									<th>订单状态</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
							<c:choose>
								<c:when test="${ empty page.data }">
									你没有订单 							
								</c:when>
								<c:otherwise>
									<c:forEach items="${page.data }" var="p">
										<tr>
											<td rowspan="#">${p.oid }</td>
											<td class="ord-pro">
												<div class="od-list">
													<div class="od-img fl">
													<img class="img" src="${p.pic }" alt="">
												</div><a class="od-name" href="">${p.name }</a>
												</div>
											</td>
											<td>${p.subPrice }</td>
											<td>${p.time }</td>
											<td>${p.state }</td>
											<td><a href="LookOrderServlet">查看</a> ｜ <a href="DeleteOrderServlet?oid=${p.oid }">删除</a>
											</td>
										</tr>
									</c:forEach>
								</c:otherwise>
							</c:choose>
							</tbody>
						</table>

									<div class="snPages">
										<a class="prev"><b></b>上一页</a>
										<a class="current" href="/0-20006-0-0-0-9017.html">1</a>
										<a href="">2</a>
										<a href="">3</a>
										<a href="">4</a>
										<span>...</span>
										<a href="" id="pageLast">100</a>
										<a class="next"><b></b>下一页</a>
										<div class="skip">向第
											<input type="text">页
											<input type="button" value="跳转" class="pagesubmit">
										</div>
									</div>
									<!--snPages end-->
								</div>
								<!--purchase-orders end-->
							</div>
						</div>
					</div>
					</div>
				</div><!--wrap end-->


      <iframe src="footer.jsp" frameborder="0" width="100%" height="462" scrolling="no"></iframe>
</body>
</html>